package com.soft.springhrms.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.soft.springhrms.pojo.EmployeeChanges;
import com.soft.springhrms.pojo.Employees;
import com.soft.springhrms.service.EmployeeChangesService;
import com.soft.springhrms.mapper.EmployeeChangesMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author DELL
 * @description 针对表【employee_changes】的数据库操作Service实现
 * @createDate 2024-11-16 18:48:18
 */
@Service
public class EmployeeChangesServiceImpl extends ServiceImpl<EmployeeChangesMapper, EmployeeChanges>
        implements EmployeeChangesService {
@Autowired
private EmployeeChangesMapper employeeChangesMapper;
    @Override
    public IPage<EmployeeChanges> getAllEmployeeChanges(int page, int size, String keyword) {
        Page<EmployeeChanges> employeeChangesPage = new Page<>(page, size);
        return employeeChangesMapper.getAllEmployeeChanges(employeeChangesPage,keyword);
    }
}




